\hypertarget{class_int_array}{\section{Int\+Array类 参考}
\label{class_int_array}\index{Int\+Array@{Int\+Array}}
}


整型数组类  




{\ttfamily \#include $<$Array.\+h$>$}

类 Int\+Array 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_int_array}
\end{center}
\end{figure}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_int_array_a07b52d3e5b0cfc4462bb17f12b6dd317}{Int\+Array} ()
\begin{DoxyCompactList}\small\item\em 整型数组构造函数 \end{DoxyCompactList}\item 
\hyperlink{class_int_array_ae28b42406ae1ba7843187ef149b427ed}{$\sim$\+Int\+Array} ()
\begin{DoxyCompactList}\small\item\em 整型数组析构函数 \end{DoxyCompactList}\item 
bool \hyperlink{class_int_array_aab30fa44eb965a8185a139e6aeb802b4}{init\+With\+String} (const string \&array\+String)
\begin{DoxyCompactList}\small\item\em 从格式化的字符串中初始化数组 \end{DoxyCompactList}\item 
string \hyperlink{class_int_array_ae2481b11971e2baa05dcefe62b11d8b7}{serialize} ()
\begin{DoxyCompactList}\small\item\em 序列化字符串数组 \end{DoxyCompactList}\item 
int \hyperlink{class_int_array_adc6bbce2722466041dbac020c5b62717}{size} ()
\begin{DoxyCompactList}\small\item\em 获取数组大小 \end{DoxyCompactList}\item 
int \hyperlink{class_int_array_a7b6ac6c3adf2432512dee1c10ea1d293}{type} ()
\begin{DoxyCompactList}\small\item\em 获取类型 \end{DoxyCompactList}\item 
void \hyperlink{class_int_array_a784d98f3bb16c40b6ee471f5ec6159a7}{clear} ()
\begin{DoxyCompactList}\small\item\em 清空数组 \end{DoxyCompactList}\item 
int \& \hyperlink{class_int_array_ae68a7b74c5a484a638ac5f3176ca18bc}{operator\mbox{[}$\,$\mbox{]}} (int idx)
\begin{DoxyCompactList}\small\item\em \mbox{[}\mbox{]}运算符重载,获取数组元素 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{友元}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_int_array}{Int\+Array} \& \hyperlink{class_int_array_a28a823550d994475dd3049daad2d88c1}{operator$<$$<$} (\hyperlink{class_int_array}{Int\+Array} \&, int)
\begin{DoxyCompactList}\small\item\em $<$$<$运算符重载,实现给数组添加元素 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
整型数组类 

\subsection{构造及析构函数说明}
\hypertarget{class_int_array_a07b52d3e5b0cfc4462bb17f12b6dd317}{\index{Int\+Array@{Int\+Array}!Int\+Array@{Int\+Array}}
\index{Int\+Array@{Int\+Array}!Int\+Array@{Int\+Array}}
\subsubsection[{Int\+Array}]{\setlength{\rightskip}{0pt plus 5cm}Int\+Array\+::\+Int\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_int_array_a07b52d3e5b0cfc4462bb17f12b6dd317}


整型数组构造函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\hypertarget{class_int_array_ae28b42406ae1ba7843187ef149b427ed}{\index{Int\+Array@{Int\+Array}!````~Int\+Array@{$\sim$\+Int\+Array}}
\index{````~Int\+Array@{$\sim$\+Int\+Array}!Int\+Array@{Int\+Array}}
\subsubsection[{$\sim$\+Int\+Array}]{\setlength{\rightskip}{0pt plus 5cm}Int\+Array\+::$\sim$\+Int\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_int_array_ae28b42406ae1ba7843187ef149b427ed}


整型数组析构函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


\subsection{成员函数说明}
\hypertarget{class_int_array_a784d98f3bb16c40b6ee471f5ec6159a7}{\index{Int\+Array@{Int\+Array}!clear@{clear}}
\index{clear@{clear}!Int\+Array@{Int\+Array}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}void Int\+Array\+::clear (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_int_array_a784d98f3bb16c40b6ee471f5ec6159a7}


清空数组 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_int_array_aab30fa44eb965a8185a139e6aeb802b4}{\index{Int\+Array@{Int\+Array}!init\+With\+String@{init\+With\+String}}
\index{init\+With\+String@{init\+With\+String}!Int\+Array@{Int\+Array}}
\subsubsection[{init\+With\+String}]{\setlength{\rightskip}{0pt plus 5cm}bool Int\+Array\+::init\+With\+String (
\begin{DoxyParamCaption}
\item[{const string \&}]{array\+String}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_int_array_aab30fa44eb965a8185a139e6aeb802b4}


从格式化的字符串中初始化数组 


\begin{DoxyParams}{参数}
{\em array\+String} & 格式化字符串,例如\+:\mbox{[}0,1,2,3\mbox{]} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_int_array_ae68a7b74c5a484a638ac5f3176ca18bc}{\index{Int\+Array@{Int\+Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!Int\+Array@{Int\+Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}int \& Int\+Array\+::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{idx}
\end{DoxyParamCaption}
)}}\label{class_int_array_ae68a7b74c5a484a638ac5f3176ca18bc}


\mbox{[}\mbox{]}运算符重载,获取数组元素 


\begin{DoxyParams}{参数}
{\em idx} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回索引为idx的数组元素 
\end{DoxyReturn}
\hypertarget{class_int_array_ae2481b11971e2baa05dcefe62b11d8b7}{\index{Int\+Array@{Int\+Array}!serialize@{serialize}}
\index{serialize@{serialize}!Int\+Array@{Int\+Array}}
\subsubsection[{serialize}]{\setlength{\rightskip}{0pt plus 5cm}string Int\+Array\+::serialize (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_int_array_ae2481b11971e2baa05dcefe62b11d8b7}


序列化字符串数组 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回格式化字符串\+:\mbox{[}0,1,2\mbox{]} 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_int_array_adc6bbce2722466041dbac020c5b62717}{\index{Int\+Array@{Int\+Array}!size@{size}}
\index{size@{size}!Int\+Array@{Int\+Array}}
\subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}int Int\+Array\+::size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_int_array_adc6bbce2722466041dbac020c5b62717}


获取数组大小 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回数组大小(元素个数) 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_int_array_a7b6ac6c3adf2432512dee1c10ea1d293}{\index{Int\+Array@{Int\+Array}!type@{type}}
\index{type@{type}!Int\+Array@{Int\+Array}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}int Int\+Array\+::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_int_array_a7b6ac6c3adf2432512dee1c10ea1d293}


获取类型 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
B\+A\+S\+E\+T\+Y\+P\+E\+\_\+\+I\+N\+T\+A\+R\+R\+A\+Y 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.



\subsection{友元及相关函数文档}
\hypertarget{class_int_array_a28a823550d994475dd3049daad2d88c1}{\index{Int\+Array@{Int\+Array}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!Int\+Array@{Int\+Array}}
\subsubsection[{operator$<$$<$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Int\+Array}\& operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{{\bf Int\+Array} \&}]{array, }
\item[{int}]{value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [friend]}}}\label{class_int_array_a28a823550d994475dd3049daad2d88c1}


$<$$<$运算符重载,实现给数组添加元素 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回数组 
\end{DoxyReturn}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_array_8h}{Array.\+h}\item 
libemb/src/Array.\+cpp\end{DoxyCompactItemize}
